import 'package:url_launcher/url_launcher.dart';

class LaunchHelper {
  static Future<void> launchByBrowser(String url) async {
    try {
      if (url.isEmpty) return;
      if (url.trim().isEmpty) return;
      Uri uri = Uri.parse(url);
      await launchUrl(uri, mode: LaunchMode.externalApplication);
    } catch (e) {
      e.toString();
    }
  }
}
